<?php

namespace App\Http\Forms;

use Kris\LaravelFormBuilder\Form;

class SystemSwitchForm extends Form
{
    public function buildForm()
    {
        $this
            ->add('rebate_ranking', 'checkbox', [
                'label' => "商家职员返利排行榜",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('money_ranking', 'checkbox', [
                'label' => "商家职员业绩排行榜",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('number_ranking', 'checkbox', [
                'label' => "商家职员单量排行榜",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('photo_ranking', 'checkbox', [
                'label' => "商家职员婚纱摄影",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('jewelry_ranking', 'checkbox', [
                'label' => "商家职员结婚首饰",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('partner_rebate_ranking', 'checkbox', [
                'label' => "合伙人返利排行榜",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('partner_money_ranking', 'checkbox', [
                'label' => "合伙人业绩排行榜",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('partner_number_ranking', 'checkbox', [
                'label' => "合伙人单量排行榜",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('partner_photo_ranking', 'checkbox', [
                'label' => "合伙人婚纱摄影",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('partner_jewelry_ranking', 'checkbox', [
                'label' => "合伙人结婚首饰",
                'rules' => "nullable|integer",
                'value' => 1
            ])
            ->add('submit', 'submit', [
                'attr' => ['class' => "form-control btn btn-success"],
                'label' => '保存',
            ]);
    }
}
